package com.mine.yyb.modules.sys.bo;

import com.mine.yyb.common.utils.jdbc.MineBaseBO;

/**
 * <pre>
 * <一句话功能简述>
 * 
 * 推送内容VO类
 * 
 * <功能详细描述>
 * </pre>
 * 
 * @author xuganhua
 * @version [版本号, 2015年12月13日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class NoticeBO extends MineBaseBO
{
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -1683260968539862943L;
    
    // 主键
    private int id;
    
    // 推送内容
    private String content;
    
    // 激活状态 1发布中 2已撤销
    private int status;
    
    // 创建日期
    private String createDate;
    
    // 更新日期
    private String updateDate;
    
    /**
     * 获取 id
     * 
     * @return 返回 id
     */
    public int getId()
    {
        return id;
    }
    
    /**
     * 设置 id
     * 
     * @param 对id进行赋值
     */
    public void setId(int id)
    {
        this.id = id;
    }
    
    /**
     * 获取 content
     * 
     * @return 返回 content
     */
    public String getContent()
    {
        return content;
    }
    
    /**
     * 设置 content
     * 
     * @param 对content进行赋值
     */
    public void setContent(String content)
    {
        this.content = content;
    }
    
    /**
     * 获取 status
     * 
     * @return 返回 status
     */
    public int getStatus()
    {
        return status;
    }
    
    /**
     * 设置 status
     * 
     * @param 对status进行赋值
     */
    public void setStatus(int status)
    {
        this.status = status;
    }
    
    /**
     * 获取 createDate
     * 
     * @return 返回 createDate
     */
    public String getCreateDate()
    {
        return createDate;
    }
    
    /**
     * 设置 createDate
     * 
     * @param 对createDate进行赋值
     */
    public void setCreateDate(String createDate)
    {
        this.createDate = createDate;
    }
    
    /**
     * 获取 updateDate
     * 
     * @return 返回 updateDate
     */
    public String getUpdateDate()
    {
        return updateDate;
    }
    
    /**
     * 设置 updateDate
     * 
     * @param 对updateDate进行赋值
     */
    public void setUpdateDate(String updateDate)
    {
        this.updateDate = updateDate;
    }
    
    /**
     * 重载方法
     * 
     * @return
     */
    @Override
    public String toString()
    {
        return "NoticeVO [id=" + id + ", content=" + content + ", status=" + status + ", createDate=" + createDate
            + ", updateDate=" + updateDate + "]";
    }
    
    /**
     * 重载方法
     * 
     * @return
     */
    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((content == null) ? 0 : content.hashCode());
        result = prime * result + ((createDate == null) ? 0 : createDate.hashCode());
        result = prime * result + id;
        result = prime * result + status;
        result = prime * result + ((updateDate == null) ? 0 : updateDate.hashCode());
        return result;
    }
    
    /**
     * 重载方法
     * 
     * @param obj
     * @return
     */
    @Override
    public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        NoticeBO other = (NoticeBO)obj;
        if (content == null)
        {
            if (other.content != null)
                return false;
        }
        else if (!content.equals(other.content))
            return false;
        if (createDate == null)
        {
            if (other.createDate != null)
                return false;
        }
        else if (!createDate.equals(other.createDate))
            return false;
        if (id != other.id)
            return false;
        if (status != other.status)
            return false;
        if (updateDate == null)
        {
            if (other.updateDate != null)
                return false;
        }
        else if (!updateDate.equals(other.updateDate))
            return false;
        return true;
    }
    
}
